package com.cmwa.solution.sys.msg.vo;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.type.Alias;
@Alias("MsgPackVo")
public class MsgPackVo {
	private String id;
	private String title;
	private String titleTemplate;
	private String contentTemplate;
	
	private String createId;
	private String createDate;
	private String modifyId;
	private String modifyDate;
	
	
	private List<MsgConfVo> conf;
	
	public MsgPackVo(){}
	


	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTitleTemplate() {
		return titleTemplate;
	}
	public void setTitleTemplate(String titleTemplate) {
		this.titleTemplate = titleTemplate;
	}
	public String getContentTemplate() {
		return contentTemplate;
	}
	public void setContentTemplate(String contentTemplate) {
		this.contentTemplate = contentTemplate;
	}




	public String getCreateId() {
		return createId;
	}
	public void setCreateId(String createId) {
		this.createId = createId;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getModifyId() {
		return modifyId;
	}
	public void setModifyId(String modifyId) {
		this.modifyId = modifyId;
	}
	public String getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(String modifyDate) {
		this.modifyDate = modifyDate;
	}
	
	
	
	public List<MsgConfVo> getConf() {
		return conf;
	}
	public void setConf(List<MsgConfVo> conf) {
		this.conf = conf;
	}
	public void addConf(List<MsgConfVo> conf) {
		if(this.conf==null){
			this.conf=conf;
		}else{
			this.conf.addAll(conf);
		}
	}
	public void addConf(MsgConfVo conf) {
		if(this.conf==null){
			this.conf=new ArrayList<MsgConfVo>();
		}
		this.conf.add(conf);
	}



	@Override
	public String toString() {
		return "MsgPackVo [id=" + id + ", title=" + title + ", titleTemplate="
				+ titleTemplate + ", contentTemplate=" + contentTemplate
				+ ", createId=" + createId + ", createDate=" + createDate
				+ ", modifyId=" + modifyId + ", modifyDate=" + modifyDate + "]";
	}

}
